
:root {
    --primary: #063b70;
    --primary-dark: #03294f;
    --primary-light: #eaf3fb;
    --gold: #c69b43;
    --gold-light: #f5e7c5;
    --text: #243449;
    --muted: #68788b;
    --white: #ffffff;
    --background: #f4f7fb;
    --border: #e2eaf2;
    --shadow: 0 15px 45px rgba(9, 44, 79, 0.09);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--background);
    overflow-x: hidden;
}

/* ==============================
   GOVERNMENT TOPBAR
================================ */

.topbar {
    background: #052d53;
    color: white;
    position: relative;
    z-index: 20;
}

.top-inner {
    max-width: 1450px;
    margin: auto;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.gov {
    display: flex;
    align-items: center;
    gap: 14px;
}

.emblem {
    width: 43px;
    height: 43px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e7c77f;
    font-size: 20px;
}

.gov-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gov-copy strong {
    font-size: 13px;
    font-weight: 700;
}

.gov-copy span {
    font-size: 11px;
    color: #d5e2ef;
}

.gov-divider {
    width: 1px;
    height: 35px;
    background: rgba(255,255,255,.3);
    margin: 0 8px;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.accessibility-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
}

.accessibility-btn i {
    font-size: 21px;
    color: #e9c778;
}

.language-box {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
}

.language-box i {
    color: #e9c778;
}

/* ==============================
   ACCESSIBILITY PANEL
================================ */

.accessibility-panel {
    position: absolute;
    right: 5%;
    top: 55px;
    z-index: 100;
    background: white;
    color: var(--text);
    padding: 18px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: min(330px, 90vw);
}

.accessibility-panel[hidden] {
    display: none;
}

.accessibility-panel strong {
    display: block;
    margin-bottom: 13px;
    color: var(--primary);
}

.accessibility-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.accessibility-actions button {
    border: 1px solid var(--border);
    background: #f4f7fb;
    padding: 9px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--primary);
    font-weight: 700;
}

/* ==============================
   BRAND HEADER
================================ */

.brand-header {
    background: white;
    position: relative;
    z-index: 10;
    box-shadow: 0 3px 15px rgba(0,0,0,.04);
}

.brand-inner {
    max-width: 1450px;
    margin: auto;
    padding: 16px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dhr-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: inherit;
}

.dhr-brand img {
    width: 340px;
    max-width: 100%;
    max-height: 76px;

    object-fit: contain; 
}

.brand-divider {
    width: 2px;
    height: 60px;
    background: var(--gold);
}

.programme-name {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.programme-name span {
     color: #52647a;
    font-size: 12px;
    font-weight: 600;
}

.programme-name strong {
    color: var(--primary);
    font-size: 17px;
    font-weight: 800;
}

.programme-name small {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-back {
    text-decoration: none;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid #d9e7f5;
    padding: 11px 19px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    gap: 9px;
    align-items: center;
    transition: .3s;
}

.brand-back:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-4px);
}

/* ==============================
   HERO BANNER
================================ */

.leadership-hero {
     min-height: 275px;
    background:
        linear-gradient(110deg,
        rgba(3, 36, 70, .97),
        rgba(5, 66, 117, .88)),
        url('/staticweb/img/YMF/YMF_bannar_new.png');

    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 25px 8%;
}

.hero-content {
    max-width: 850px;
    position: relative;
    z-index: 2;
    animation: heroReveal .9s ease both;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #f1d28f;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content h3 {
    color: white;
    font-size: clamp(34px, 5vw, 5px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero-content h3 span {
    color: #e8c47b;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.hero-content p {
    color: #dbe9f6;
    font-size: 15px;
    line-height: 1.9;
    max-width: 680px;
}

.hero-line {
    width: 70px;
    height: 3px;
    background: var(--gold);
    margin: 25px 0 15px;
}

.hero-subtitle {
    color: #f0d99e;
    font-size: 12px;
    letter-spacing: .5px;
}

.hero-decoration {
    position: absolute;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    pointer-events: none;
}

.decoration-one {
    width: 380px;
    height: 380px;
    right: 8%;
    top: -100px;
}

.decoration-two {
    width: 250px;
    height: 250px;
    right: 12%;
    top: -35px;
}

/* ==============================
   MAIN LEADERSHIP SECTION
================================ */

.faculty-page {
    max-width: 1400px;
    margin: auto;
    padding: 70px 5%;
}

.leadership-section {
    width: 100%;
}

.section-heading {
    text-align: center;
    margin-bottom: 48px;
}

.section-kicker {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.section-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(29px, 4vw, 39px);
    color: var(--primary);
    margin: 12px 0;
}

.section-heading p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.heading-line {
    width: 65px;
    height: 3px;
    margin: 20px auto 0;
    background: var(--gold);
    border-radius: 5px;
}

/* ==============================
   LEADERSHIP GRID
================================ */

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.leader-card {
    position: relative;
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .35s ease, box-shadow .35s ease;
    opacity: 0;
    transform: translateY(35px);
    animation: cardReveal .7s ease forwards;
    animation-delay: calc(var(--card-index) * .2s);
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 55px rgba(9, 44, 79, .15);
}

.leader-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
}

.leader-top {
    padding: 32px 27px 25px;
    display: flex;
    align-items: center;
    gap: 23px;
    background: linear-gradient(130deg, #f5f9fd, #ffffff);
}

.leader-image-wrapper {
    width: 145px;
    min-width: 145px;
    height: 165px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background: #e9f0f7;
    border: 4px solid white;
    box-shadow: 0 5px 18px rgba(0,0,0,.12);
}

.leader-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .5s ease;
}

.leader-card:hover .leader-image {
    transform: scale(1.07);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 52, 93, .25);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 30px;
    opacity: 0;
    transition: .3s;
}

.leader-card:hover .image-overlay {
    opacity: 1;
}

.leader-info {
    flex: 1;
    min-width: 0;
}

.leader-number {
    color: #d5dfe9;
    font-size: 30px;
    font-weight: 800;
    display: block;
    margin-bottom: 3px;
}

.leader-designation {
    display: inline-block;
    background: #e9f2fb;
    color: var(--primary);
    padding: 6px 11px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leader-info h3 {
    font-size: 21px;
    color: var(--primary);
    margin: 12px 0 9px;
    font-weight: 800;
    line-height: 1.3;
}

.leader-underline {
    width: 38px;
    height: 3px;
    background: var(--gold);
    border-radius: 5px;
    margin-bottom: 12px;
}

.leader-info p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

/* ==============================
   DESCRIPTION
================================ */

.leader-content {
    position: relative;
    padding: 25px 28px 22px;
    border-top: 1px solid #edf1f6;
    min-height: 150px;
}

.quote-icon {
    color: #e5edf6;
    font-size: 26px;
    margin-bottom: 9px;
}

.leader-description {
    color: #586a7d;
    font-size: 13px;
    line-height: 1.95;
    text-align: justify;
}

/* ==============================
   CARD FOOTER
================================ */

.leader-footer {
    padding: 15px 28px;
    background: #f8fafc;
    border-top: 1px solid #edf1f6;
    display: flex;
    align-items: center;
    gap: 12px;
}

.leader-footer span:first-child {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
}

.leader-footer i {
    color: var(--gold);
    margin-right: 5px;
}

.leader-footer-line {
    flex: 1;
    height: 1px;
    background: #dce5ed;
}

/* ==============================
   BOTTOM PROGRAMME MESSAGE
================================ */

.leadership-message {
    margin-top: 65px;
    padding: 30px 35px;
    border-radius: 13px;
    background: linear-gradient(110deg, #052f58, #07518a);
    color: white;
    display: flex;
    align-items: center;
    gap: 23px;
    box-shadow: 0 12px 30px rgba(3, 48, 87, .15);
}

.message-icon {
    width: 62px;
    min-width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #f0d18d;
    border-radius: 12px;
    font-size: 27px;
}

.message-content {
    flex: 1;
}

.message-content h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.message-content p {
    color: #d9e7f3;
    font-size: 12px;
    line-height: 1.8;
}

.message-link {
    text-decoration: none;
    color: #15395b;
    background: #f0d18d;
    border-radius: 6px;
    padding: 13px 18px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
    transition: .3s;
}

.message-link:hover {
    background: white;
    transform: translateX(4px);
}

.message-link i {
    margin-left: 7px;
}

/* ==============================
   FOOTER
================================ */

.page-footer {
    background: #032747;
    color: white;
}

.footer-inner {
    max-width: 1400px;
    margin: auto;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-inner strong {
    font-size: 13px;
}

.footer-inner p,
.footer-right span {
    color: #c3d2e0;
    font-size: 10px;
    margin-top: 7px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    text-align: right;
}

/* ==============================
   ANIMATIONS
================================ */

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================
   HIGH CONTRAST
================================ */

body.high-contrast {
    --background: #fff;
    --text: #000;
    --muted: #222;
    --border: #555;
}

body.high-contrast .leader-card,
body.high-contrast .leader-top,
body.high-contrast .leader-content {
    background: white;
    border-color: black;
}

body.high-contrast .leader-description,
body.high-contrast .leader-info p {
    color: black;
}

/* ==============================
   RESPONSIVE DESIGN
================================ */

@media (max-width: 950px) {

    .leadership-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin: auto;
    }

    .leader-card {
        width: 100%;
    }

    .leadership-hero {
        min-height: 320px;
    }
}

@media (max-width: 650px) {

    .top-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 13px;
    }

    .gov {
        flex-wrap: wrap;
    }

    .ministry {
        max-width: 210px;
    }

    .top-links {
        width: 100%;
        justify-content: space-between;
    }

    .brand-inner {
        align-items: flex-start;
    }

    .dhr-brand {
        gap: 10px;
    }

    .dhr-brand img {
        width: 52px;
        height: 58px;
    }

    .brand-divider {
        height: 48px;
    }

    .programme-name span {
        font-size: 9px;
    }

    .programme-name strong {
        font-size: 12px;
        line-height: 1.5;
    }

    .programme-name small {
        font-size: 10px;
    }

    .brand-back {
        padding: 9px;
        font-size: 10px;
    }

    .brand-back span {
        display: none;
    }

    .leadership-hero {
        min-height: 330px;
        padding: 45px 7%;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .faculty-page {
        padding: 48px 5%;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .leader-top {
        padding: 24px 18px;
        gap: 15px;
    }

    .leader-image-wrapper {
        width: 105px;
        min-width: 105px;
        height: 130px;
    }

    .leader-info h3 {
        font-size: 16px;
    }

    .leader-number {
        font-size: 22px;
    }

    .leader-info p {
        font-size: 10px;
    }

    .leader-content {
        padding: 20px;
    }

    .leader-description {
        font-size: 12px;
    }

    .leadership-message {
        padding: 23px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .message-content {
        flex-basis: calc(100% - 80px);
    }

    .message-link {
        margin-left: 77px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-right {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
.leader-card.visible {
    opacity: 1;
    transform: translateY(0);
}